﻿using BCDto.Trading.Purchase.GoodsPurchaseContractAttachment;
using BCDto.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.Trading.Purchase.GoodsPurchase
{
    /// <summary>
    /// 商品采购交付信息
    /// </summary>
    public class GoodsPurchaseDeliveryInfoRequestDto
    {
        /// <summary>
        /// 商品采购单Id
        /// </summary>		
        [Display(Name = "商品采购单Id")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public long GoodsPurchaseId { get; set; }
        /// <summary>
        /// 交付日期
        /// </summary>
        [Display(Name= "交付日期")]
        [Required(ErrorMessage ="{0} 不应为空")]
        public DateTime DeliveryDate { get;set;}
        /// <summary>
        /// 采购合同编号
        /// </summary>
        [Display(Name = "采购合同编号")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [MaxLength(50,ErrorMessage ="{0} 最长为50位")]
        public string PurchaseContractNo { get; set; }
        /// <summary>
        /// 采购合同备注
        /// </summary>
        [Display(Name = "采购合同备注")]
        public string PurchaseContractRemark { get; set; }
        /// <summary>
        /// 采购合同附件
        /// </summary>
        [Display(Name = "合同附件")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [Image]
        public List<string> Attachments { get; set; }
    }
}
